import { createRequestTypes } from '@UTILS/reduxHelper'

export const GET_TAG_DETAIL = createRequestTypes('GET_TAG_DETAIL')
export const GET_TAG_FEATURED = createRequestTypes('GET_TAG_FEATURED')
export const GET_TAG_SURVEYS = createRequestTypes('GET_TAG_SURVEYS')
export const GET_TAG_FEED_LIST = createRequestTypes('GET_TAG_FEED_LIST')
export const GET_TAG_DOCTORS = createRequestTypes('GET_TAG_DOCTORS')
export const GET_TAG_VIDEOS = createRequestTypes('GET_TAG_VIDEOS')
export const GET_TAG_PLAN = createRequestTypes('GET_TAG_PLAN')
export const GET_TAG_GOODS = createRequestTypes('GET_TAG_GOODS')

export default {
  dispatchGetTagDetail(payload) {
    return {
      type: GET_TAG_DETAIL.REQUEST,
      payload
    }
  },
  dispatchGetTagSurveys(payload) {
    return {
      type: GET_TAG_SURVEYS.REQUEST,
      payload
    }
  },
  dispatchGetTagFeatured(payload) {
    return {
      type: GET_TAG_FEATURED.REQUEST,
      payload
    }
  },
  dispatchGetTagDoctors(payload) {
    return {
      type: GET_TAG_DOCTORS.REQUEST,
      payload
    }
  },
  dispatchGetTagVideos(payload) {
    return {
      type: GET_TAG_VIDEOS.REQUEST,
      payload
    }
  },
  dispatchGetTagFeedList(payload) {
    return {
      type: GET_TAG_FEED_LIST.REQUEST,
      payload
    }
  }
}
